package com.vickw.springcloud;

import com.vickw.myrule.MyselfRule;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @version 1.0
 * @Description：
 * @Author VickW
 * @Date 2022/2/18 21:08
 */
@SpringBootApplication
@EnableEurekaClient
// 自定义负载均衡规则，这里name用的是服务提供者的服务名，注意要大写，小写会识别不了
//@RibbonClient(name = "CLOUD-PROVIDER-PAYMENT",configuration = MyselfRule.class)
@Slf4j
public class OrderMain80 {
    public static void main(String[] args) {
        log.info("*******************OrderMain80开始启动*******************");
        ConfigurableApplicationContext ac = SpringApplication.run(OrderMain80.class, args);
        log.info(ac.toString());
        log.info("*******************OrderMain80成功启动*******************");
    }
}
